package net.office.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class StaffLeaveExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StaffLeaveExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andStaffLeaveIdIsNull() {
            addCriterion("staff_leave_Id is null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveIdIsNotNull() {
            addCriterion("staff_leave_Id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveIdEqualTo(Integer value) {
            addCriterion("staff_leave_Id =", value, "staffLeaveId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveIdNotEqualTo(Integer value) {
            addCriterion("staff_leave_Id <>", value, "staffLeaveId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveIdGreaterThan(Integer value) {
            addCriterion("staff_leave_Id >", value, "staffLeaveId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_leave_Id >=", value, "staffLeaveId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveIdLessThan(Integer value) {
            addCriterion("staff_leave_Id <", value, "staffLeaveId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_leave_Id <=", value, "staffLeaveId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveIdIn(List<Integer> values) {
            addCriterion("staff_leave_Id in", values, "staffLeaveId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveIdNotIn(List<Integer> values) {
            addCriterion("staff_leave_Id not in", values, "staffLeaveId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_leave_Id between", value1, value2, "staffLeaveId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_leave_Id not between", value1, value2, "staffLeaveId");
            return (Criteria) this;
        }

        public Criteria andStaffIdIsNull() {
            addCriterion("staff_Id is null");
            return (Criteria) this;
        }

        public Criteria andStaffIdIsNotNull() {
            addCriterion("staff_Id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffIdEqualTo(Integer value) {
            addCriterion("staff_Id =", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotEqualTo(Integer value) {
            addCriterion("staff_Id <>", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThan(Integer value) {
            addCriterion("staff_Id >", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_Id >=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThan(Integer value) {
            addCriterion("staff_Id <", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_Id <=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdIn(List<Integer> values) {
            addCriterion("staff_Id in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotIn(List<Integer> values) {
            addCriterion("staff_Id not in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_Id between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_Id not between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffNoIsNull() {
            addCriterion("staff_no is null");
            return (Criteria) this;
        }

        public Criteria andStaffNoIsNotNull() {
            addCriterion("staff_no is not null");
            return (Criteria) this;
        }

        public Criteria andStaffNoEqualTo(String value) {
            addCriterion("staff_no =", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotEqualTo(String value) {
            addCriterion("staff_no <>", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoGreaterThan(String value) {
            addCriterion("staff_no >", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoGreaterThanOrEqualTo(String value) {
            addCriterion("staff_no >=", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoLessThan(String value) {
            addCriterion("staff_no <", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoLessThanOrEqualTo(String value) {
            addCriterion("staff_no <=", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoLike(String value) {
            addCriterion("staff_no like", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotLike(String value) {
            addCriterion("staff_no not like", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoIn(List<String> values) {
            addCriterion("staff_no in", values, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotIn(List<String> values) {
            addCriterion("staff_no not in", values, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoBetween(String value1, String value2) {
            addCriterion("staff_no between", value1, value2, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotBetween(String value1, String value2) {
            addCriterion("staff_no not between", value1, value2, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNameIsNull() {
            addCriterion("staff_name is null");
            return (Criteria) this;
        }

        public Criteria andStaffNameIsNotNull() {
            addCriterion("staff_name is not null");
            return (Criteria) this;
        }

        public Criteria andStaffNameEqualTo(String value) {
            addCriterion("staff_name =", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotEqualTo(String value) {
            addCriterion("staff_name <>", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameGreaterThan(String value) {
            addCriterion("staff_name >", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameGreaterThanOrEqualTo(String value) {
            addCriterion("staff_name >=", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLessThan(String value) {
            addCriterion("staff_name <", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLessThanOrEqualTo(String value) {
            addCriterion("staff_name <=", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLike(String value) {
            addCriterion("staff_name like", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotLike(String value) {
            addCriterion("staff_name not like", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameIn(List<String> values) {
            addCriterion("staff_name in", values, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotIn(List<String> values) {
            addCriterion("staff_name not in", values, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameBetween(String value1, String value2) {
            addCriterion("staff_name between", value1, value2, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotBetween(String value1, String value2) {
            addCriterion("staff_name not between", value1, value2, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveStartDateIsNull() {
            addCriterion("staff_leave_start_date is null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveStartDateIsNotNull() {
            addCriterion("staff_leave_start_date is not null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveStartDateEqualTo(Date value) {
            addCriterionForJDBCDate("staff_leave_start_date =", value, "staffLeaveStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveStartDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("staff_leave_start_date <>", value, "staffLeaveStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveStartDateGreaterThan(Date value) {
            addCriterionForJDBCDate("staff_leave_start_date >", value, "staffLeaveStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveStartDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_leave_start_date >=", value, "staffLeaveStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveStartDateLessThan(Date value) {
            addCriterionForJDBCDate("staff_leave_start_date <", value, "staffLeaveStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveStartDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_leave_start_date <=", value, "staffLeaveStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveStartDateIn(List<Date> values) {
            addCriterionForJDBCDate("staff_leave_start_date in", values, "staffLeaveStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveStartDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("staff_leave_start_date not in", values, "staffLeaveStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveStartDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_leave_start_date between", value1, value2, "staffLeaveStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveStartDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_leave_start_date not between", value1, value2, "staffLeaveStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveEndDateIsNull() {
            addCriterion("staff_leave_end_date is null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveEndDateIsNotNull() {
            addCriterion("staff_leave_end_date is not null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveEndDateEqualTo(Date value) {
            addCriterionForJDBCDate("staff_leave_end_date =", value, "staffLeaveEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveEndDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("staff_leave_end_date <>", value, "staffLeaveEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveEndDateGreaterThan(Date value) {
            addCriterionForJDBCDate("staff_leave_end_date >", value, "staffLeaveEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveEndDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_leave_end_date >=", value, "staffLeaveEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveEndDateLessThan(Date value) {
            addCriterionForJDBCDate("staff_leave_end_date <", value, "staffLeaveEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveEndDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_leave_end_date <=", value, "staffLeaveEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveEndDateIn(List<Date> values) {
            addCriterionForJDBCDate("staff_leave_end_date in", values, "staffLeaveEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveEndDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("staff_leave_end_date not in", values, "staffLeaveEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveEndDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_leave_end_date between", value1, value2, "staffLeaveEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveEndDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_leave_end_date not between", value1, value2, "staffLeaveEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonIsNull() {
            addCriterion("staff_leave_reason is null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonIsNotNull() {
            addCriterion("staff_leave_reason is not null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonEqualTo(String value) {
            addCriterion("staff_leave_reason =", value, "staffLeaveReason");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonNotEqualTo(String value) {
            addCriterion("staff_leave_reason <>", value, "staffLeaveReason");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonGreaterThan(String value) {
            addCriterion("staff_leave_reason >", value, "staffLeaveReason");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonGreaterThanOrEqualTo(String value) {
            addCriterion("staff_leave_reason >=", value, "staffLeaveReason");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonLessThan(String value) {
            addCriterion("staff_leave_reason <", value, "staffLeaveReason");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonLessThanOrEqualTo(String value) {
            addCriterion("staff_leave_reason <=", value, "staffLeaveReason");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonLike(String value) {
            addCriterion("staff_leave_reason like", value, "staffLeaveReason");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonNotLike(String value) {
            addCriterion("staff_leave_reason not like", value, "staffLeaveReason");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonIn(List<String> values) {
            addCriterion("staff_leave_reason in", values, "staffLeaveReason");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonNotIn(List<String> values) {
            addCriterion("staff_leave_reason not in", values, "staffLeaveReason");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonBetween(String value1, String value2) {
            addCriterion("staff_leave_reason between", value1, value2, "staffLeaveReason");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveReasonNotBetween(String value1, String value2) {
            addCriterion("staff_leave_reason not between", value1, value2, "staffLeaveReason");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveSubmitTimeIsNull() {
            addCriterion("staff_leave_submit_time is null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveSubmitTimeIsNotNull() {
            addCriterion("staff_leave_submit_time is not null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveSubmitTimeEqualTo(Date value) {
            addCriterion("staff_leave_submit_time =", value, "staffLeaveSubmitTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveSubmitTimeNotEqualTo(Date value) {
            addCriterion("staff_leave_submit_time <>", value, "staffLeaveSubmitTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveSubmitTimeGreaterThan(Date value) {
            addCriterion("staff_leave_submit_time >", value, "staffLeaveSubmitTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveSubmitTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("staff_leave_submit_time >=", value, "staffLeaveSubmitTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveSubmitTimeLessThan(Date value) {
            addCriterion("staff_leave_submit_time <", value, "staffLeaveSubmitTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveSubmitTimeLessThanOrEqualTo(Date value) {
            addCriterion("staff_leave_submit_time <=", value, "staffLeaveSubmitTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveSubmitTimeIn(List<Date> values) {
            addCriterion("staff_leave_submit_time in", values, "staffLeaveSubmitTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveSubmitTimeNotIn(List<Date> values) {
            addCriterion("staff_leave_submit_time not in", values, "staffLeaveSubmitTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveSubmitTimeBetween(Date value1, Date value2) {
            addCriterion("staff_leave_submit_time between", value1, value2, "staffLeaveSubmitTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveSubmitTimeNotBetween(Date value1, Date value2) {
            addCriterion("staff_leave_submit_time not between", value1, value2, "staffLeaveSubmitTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveResultIsNull() {
            addCriterion("staff_leave_approve_result is null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveResultIsNotNull() {
            addCriterion("staff_leave_approve_result is not null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveResultEqualTo(Integer value) {
            addCriterion("staff_leave_approve_result =", value, "staffLeaveApproveResult");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveResultNotEqualTo(Integer value) {
            addCriterion("staff_leave_approve_result <>", value, "staffLeaveApproveResult");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveResultGreaterThan(Integer value) {
            addCriterion("staff_leave_approve_result >", value, "staffLeaveApproveResult");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveResultGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_leave_approve_result >=", value, "staffLeaveApproveResult");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveResultLessThan(Integer value) {
            addCriterion("staff_leave_approve_result <", value, "staffLeaveApproveResult");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveResultLessThanOrEqualTo(Integer value) {
            addCriterion("staff_leave_approve_result <=", value, "staffLeaveApproveResult");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveResultIn(List<Integer> values) {
            addCriterion("staff_leave_approve_result in", values, "staffLeaveApproveResult");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveResultNotIn(List<Integer> values) {
            addCriterion("staff_leave_approve_result not in", values, "staffLeaveApproveResult");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveResultBetween(Integer value1, Integer value2) {
            addCriterion("staff_leave_approve_result between", value1, value2, "staffLeaveApproveResult");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveResultNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_leave_approve_result not between", value1, value2, "staffLeaveApproveResult");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffIdIsNull() {
            addCriterion("staff_leave_approve_staff_Id is null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffIdIsNotNull() {
            addCriterion("staff_leave_approve_staff_Id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffIdEqualTo(Integer value) {
            addCriterion("staff_leave_approve_staff_Id =", value, "staffLeaveApproveStaffId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffIdNotEqualTo(Integer value) {
            addCriterion("staff_leave_approve_staff_Id <>", value, "staffLeaveApproveStaffId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffIdGreaterThan(Integer value) {
            addCriterion("staff_leave_approve_staff_Id >", value, "staffLeaveApproveStaffId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_leave_approve_staff_Id >=", value, "staffLeaveApproveStaffId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffIdLessThan(Integer value) {
            addCriterion("staff_leave_approve_staff_Id <", value, "staffLeaveApproveStaffId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_leave_approve_staff_Id <=", value, "staffLeaveApproveStaffId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffIdIn(List<Integer> values) {
            addCriterion("staff_leave_approve_staff_Id in", values, "staffLeaveApproveStaffId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffIdNotIn(List<Integer> values) {
            addCriterion("staff_leave_approve_staff_Id not in", values, "staffLeaveApproveStaffId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_leave_approve_staff_Id between", value1, value2, "staffLeaveApproveStaffId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_leave_approve_staff_Id not between", value1, value2, "staffLeaveApproveStaffId");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoIsNull() {
            addCriterion("staff_leave_approve_staff_no is null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoIsNotNull() {
            addCriterion("staff_leave_approve_staff_no is not null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoEqualTo(String value) {
            addCriterion("staff_leave_approve_staff_no =", value, "staffLeaveApproveStaffNo");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoNotEqualTo(String value) {
            addCriterion("staff_leave_approve_staff_no <>", value, "staffLeaveApproveStaffNo");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoGreaterThan(String value) {
            addCriterion("staff_leave_approve_staff_no >", value, "staffLeaveApproveStaffNo");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoGreaterThanOrEqualTo(String value) {
            addCriterion("staff_leave_approve_staff_no >=", value, "staffLeaveApproveStaffNo");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoLessThan(String value) {
            addCriterion("staff_leave_approve_staff_no <", value, "staffLeaveApproveStaffNo");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoLessThanOrEqualTo(String value) {
            addCriterion("staff_leave_approve_staff_no <=", value, "staffLeaveApproveStaffNo");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoLike(String value) {
            addCriterion("staff_leave_approve_staff_no like", value, "staffLeaveApproveStaffNo");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoNotLike(String value) {
            addCriterion("staff_leave_approve_staff_no not like", value, "staffLeaveApproveStaffNo");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoIn(List<String> values) {
            addCriterion("staff_leave_approve_staff_no in", values, "staffLeaveApproveStaffNo");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoNotIn(List<String> values) {
            addCriterion("staff_leave_approve_staff_no not in", values, "staffLeaveApproveStaffNo");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoBetween(String value1, String value2) {
            addCriterion("staff_leave_approve_staff_no between", value1, value2, "staffLeaveApproveStaffNo");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNoNotBetween(String value1, String value2) {
            addCriterion("staff_leave_approve_staff_no not between", value1, value2, "staffLeaveApproveStaffNo");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameIsNull() {
            addCriterion("staff_leave_approve_staff_name is null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameIsNotNull() {
            addCriterion("staff_leave_approve_staff_name is not null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameEqualTo(String value) {
            addCriterion("staff_leave_approve_staff_name =", value, "staffLeaveApproveStaffName");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameNotEqualTo(String value) {
            addCriterion("staff_leave_approve_staff_name <>", value, "staffLeaveApproveStaffName");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameGreaterThan(String value) {
            addCriterion("staff_leave_approve_staff_name >", value, "staffLeaveApproveStaffName");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameGreaterThanOrEqualTo(String value) {
            addCriterion("staff_leave_approve_staff_name >=", value, "staffLeaveApproveStaffName");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameLessThan(String value) {
            addCriterion("staff_leave_approve_staff_name <", value, "staffLeaveApproveStaffName");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameLessThanOrEqualTo(String value) {
            addCriterion("staff_leave_approve_staff_name <=", value, "staffLeaveApproveStaffName");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameLike(String value) {
            addCriterion("staff_leave_approve_staff_name like", value, "staffLeaveApproveStaffName");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameNotLike(String value) {
            addCriterion("staff_leave_approve_staff_name not like", value, "staffLeaveApproveStaffName");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameIn(List<String> values) {
            addCriterion("staff_leave_approve_staff_name in", values, "staffLeaveApproveStaffName");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameNotIn(List<String> values) {
            addCriterion("staff_leave_approve_staff_name not in", values, "staffLeaveApproveStaffName");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameBetween(String value1, String value2) {
            addCriterion("staff_leave_approve_staff_name between", value1, value2, "staffLeaveApproveStaffName");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveStaffNameNotBetween(String value1, String value2) {
            addCriterion("staff_leave_approve_staff_name not between", value1, value2, "staffLeaveApproveStaffName");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveTimeIsNull() {
            addCriterion("staff_leave_approve_time is null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveTimeIsNotNull() {
            addCriterion("staff_leave_approve_time is not null");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveTimeEqualTo(Date value) {
            addCriterion("staff_leave_approve_time =", value, "staffLeaveApproveTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveTimeNotEqualTo(Date value) {
            addCriterion("staff_leave_approve_time <>", value, "staffLeaveApproveTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveTimeGreaterThan(Date value) {
            addCriterion("staff_leave_approve_time >", value, "staffLeaveApproveTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("staff_leave_approve_time >=", value, "staffLeaveApproveTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveTimeLessThan(Date value) {
            addCriterion("staff_leave_approve_time <", value, "staffLeaveApproveTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveTimeLessThanOrEqualTo(Date value) {
            addCriterion("staff_leave_approve_time <=", value, "staffLeaveApproveTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveTimeIn(List<Date> values) {
            addCriterion("staff_leave_approve_time in", values, "staffLeaveApproveTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveTimeNotIn(List<Date> values) {
            addCriterion("staff_leave_approve_time not in", values, "staffLeaveApproveTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveTimeBetween(Date value1, Date value2) {
            addCriterion("staff_leave_approve_time between", value1, value2, "staffLeaveApproveTime");
            return (Criteria) this;
        }

        public Criteria andStaffLeaveApproveTimeNotBetween(Date value1, Date value2) {
            addCriterion("staff_leave_approve_time not between", value1, value2, "staffLeaveApproveTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}